import axios from 'axios'

export function getUserById() {
  return axios.get(`/user/user/getUser`)
}

export function updateUserById(userInfo) {
  return axios.post(`/user/user/update/info`,userInfo)
}

export function setEduction(educationInfo) {
  return axios.post(`/article/article/education/set`,educationInfo)
}

export function getEduction(userId) {
  return axios.get(`/article/article/education/getEducation`)
}

export function getCompany(userId) {
  return axios.get(`/article/article/company/getByUserId`)
}

export function updateCompany(company) {
  return axios.get(`/article/article/company/update`,company)
}